<!DOCTYPE html>
<html>
  <head>
    <title>AjaxPostingApp</title>
    <%= csrf_meta_tags %>
    <meta name="turbolinks-cache-control" content="no-cache">
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>

  <body>

    <% if flash[:notice] %>
      <%= flash[:notice] %>
    <% end %>

    <% if flash[:alert] %>
      <%= flash[:alert] %>
    <% end %>

    <% if current_user %>
      <%= link_to "Logout", destroy_user_session_path, :method => :delete %>
      <%= link_to('Modify Password', edit_registration_path(:user)) %>
    <% else %>
      <%= link_to('Regist', new_registration_path(:user)) %> |
      <%= link_to('Login', new_session_path(:user)) %>
    <% end %>

    <%= yield %>
  </body>
</html>
